using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN GiaoVienService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: GiaoVienService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class GiaoVienService : IGiaoVienService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: GiaoVien_ID</para>
		/// <para>Output: GiaoVienEntity</para>
		///</summary>
		public GiaoVienEntity SelectOne(int GiaoVien_ID){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.SelectOne(GiaoVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaGiaoVien</para>
		/// <para>Input: MaGiaoVien</para>
		/// <para>Output: GiaoVienEntity</para>
		///</summary>
		public GiaoVienEntity SelectOneByMaGiaoVien(string MaGiaoVien){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.SelectOneByMaGiaoVien(MaGiaoVien);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of GiaoVienEntity</para>
		///</summary>
		public List<GiaoVienEntity> SelectAll(){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of GiaoVienEntity</para>
		///</summary>
		public List<GiaoVienEntity> SelectAllFilter(string strFilter){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: GiaoVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(GiaoVienEntity o){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: GiaoVienEntity</para>
		/// <para>Output: GiaoVienEntity</para>
		///</summary>
		public GiaoVienEntity SaveRet(GiaoVienEntity o){
			GiaoVienDAO dao = new GiaoVienDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of GiaoVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<GiaoVienEntity> list){
			GiaoVienDAO dao = new GiaoVienDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of GiaoVienEntity</para>
		/// <para>Output: List of GiaoVienEntity</para>
		///</summary>
		public List<GiaoVienEntity> SaveListRet(List<GiaoVienEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: GiaoVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(GiaoVienEntity o){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of GiaoVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<GiaoVienEntity> list){
			GiaoVienDAO dao = new GiaoVienDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaGiaoVien</para>
		/// <para>Input: NewMaGiaoVien,GiaoVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaGiaoVien(string NewMaGiaoVien,int GiaoVien_ID){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.UpdateMaGiaoVien(NewMaGiaoVien,GiaoVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateHoTenGiaoVien</para>
		/// <para>Input: NewHoTenGiaoVien,GiaoVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateHoTenGiaoVien(string NewHoTenGiaoVien,int GiaoVien_ID){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.UpdateHoTenGiaoVien(NewHoTenGiaoVien,GiaoVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateNgaySinh</para>
		/// <para>Input: NewNgaySinh,GiaoVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNgaySinh(string NewNgaySinh,int GiaoVien_ID){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.UpdateNgaySinh(NewNgaySinh,GiaoVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateDiaChi</para>
		/// <para>Input: NewDiaChi,GiaoVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDiaChi(string NewDiaChi,int GiaoVien_ID){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.UpdateDiaChi(NewDiaChi,GiaoVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateBoMon_ID</para>
		/// <para>Input: NewBoMon_ID,GiaoVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateBoMon_ID(int NewBoMon_ID,int GiaoVien_ID){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.UpdateBoMon_ID(NewBoMon_ID,GiaoVien_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: GiaoVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(GiaoVienEntity o){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: GiaoVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int GiaoVien_ID){
			GiaoVienDAO dao = new GiaoVienDAO();
			return dao.DeleteByID(GiaoVien_ID);
		}
		#endregion

		#region Select join to BoMon functions
		#endregion

		#region Select,delete by GiaoVien_ID functions
		#endregion

		#region Select,delete by BoMon_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END GiaoVienWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

